﻿#ifndef PERSONINFOEDIT_H
#define PERSONINFOEDIT_H
#pragma once
#include <QWidget>

namespace Ui {
class PersonInfoEdit;
}

class PersonInfoEdit : public QWidget
{
    Q_OBJECT

public:
    explicit PersonInfoEdit(QWidget *parent = nullptr);
    ~PersonInfoEdit();
    void mousePressEvent(QMouseEvent *event);//鼠标点击
    void mouseMoveEvent(QMouseEvent *event);//鼠标移动
    void mouseReleaseEvent(QMouseEvent *event);//鼠标释放
    QString getStartAndZodiac(QString time);//根据时间获取生肖和星座
    static PersonInfoEdit& getInstance();
private slots:
    void on_btn_close_clicked();

    void on_btn_min_clicked();

    void on_btn_save_clicked();

private:
    Ui::PersonInfoEdit *ui;
    bool isPressedWidget;//isPressedWidget和last用来控制窗口移动
    QPoint last;
};

#endif // PERSONINFOEDIT_H
